﻿using System.Collections.Generic;
using Coder.Workflow.ViewModel;

namespace Fee.Orders.ViewModel
{
    public class OrderDetailList : ProcessInstanceViewData
    {
        private IList<DelegateOrderDetailViewModel> _details;

        public OrderDetailList()
        {
        }

        public OrderDetailList(DelegateOrderBase instance) : base(instance)
        {
        }

        public IList<DelegateOrderDetailViewModel> Details
        {
            get => _details ?? (_details = new List<DelegateOrderDetailViewModel>());
            set => _details = value;
        }
    }
}